<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>主页</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link data-th-href="@{static/jqgrid/css/bootstrap.css}" rel="stylesheet">
<link rel="stylesheet" data-th-href="@{webjars/jquery-ui/1.12.1/themes/smoothness/jquery-ui.css}">
<link rel="stylesheet" data-th-href="@{static/jqgrid/css/ui.jqgrid.css}">
<link rel="stylesheet" data-th-href="@{webjars/jquery-ui/1.12.1/themes/smoothness/theme.css}">
<script type="text/javascript"src="static/laydate/laydate.js"></script>
<script type="text/javascript" src="static/bootstrapJS/jquery.js"></script>
<script type="text/javascript" src="static/bootstrapJS/bootstrap.js"></script>
<script type="text/javascript" src="static/jqgrid/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="static/jqgrid/jqueryUI/jquery-ui.js"></script>
<script type="text/javascript" src="static/jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="static/jqgrid/js/grid.locale-cn.js"></script>
<script type="text/javascript" src="static/bootstrapJS/jquery.validate.js"></script>
<script type="text/javascript" src="static/bootstrapJS/messages_zh.js"></script>
<script type="text/javascript">
	function lessee(){
		$('#aaa').load('../kingroot/kingrootmain')
	};
	
	function lesseeadmin(){
		$('#aaa').load('../lesseeadmin/lesseeadminmain')
	};
	
	function tongji(){
		$('#aaa').load('../eim/eimmain');
	};
	
	function zclessee(){
		$('#aaa').load('../lessee/trtenantmain');
	};
	
	function userM(){
		$('#aaa').load('../enduser/endusermain');
	};
	
	function fpgl(){
		$('#aaa').load('../eim/lesseeeim');
	};
	
	function impower(){
		$('#aaa').load('../lesseekingroot/lesseekingroot');
	};
	
	function eimrefer(){
		$('#aaa').load('../eimrefer/eimrefer');
	};
	
	function eimadd(){
		$('#aaa').load('../eimrefer/addeim')
	};
	
	function enduserpwd(){
		$('#aaa').load('../enduser/enduserpwd')
	};
	
	function log(){
		$('#aaa').load('../log/logmain')
	}
</script>
<style type="text/css">
.navbar-brand {
	color: black !important;
	font-size: 23px;
	font-family: '黑体';
}

#aaa {
	margin-top: 200px;
}

#bbb {
	font-size: 18px;
	margin-left: 330px;
}
/*  .ui-jqgrid-titlebar {
	height: 30px;
	font-size: 15px;
}

span.error {
	color: red;
} */

body {
background: url("../static/img/123.jpg");
	background-size:104.5%;
} 
</style>
</head>
<body>
	<nav class="navbar navbar-fixed-top navbar-default">
		<div class="container-fluid col-md-10 col-md-offset-1">
			<div class="navbar-header">
				<a href="" class="navbar-brand" style="margin-left: -90px;">电子发票管理系统</a>
			</div>
			<div class="collapse navbar-collapse" id="menu">
				<ul class="nav navbar-nav navbar-right">
					<li style="font-size: 14px;font-weight: 700;padding:1em;">欢迎你：
						<span sec:authorize="hasRole('ROLE_DBA')">开发者</span>
						<span sec:authorize="hasRole('ROLE_ADMIN')" sec:authentication="principal.name">系统管理员名字</span>
						<span sec:authorize="hasRole('ROLE_TMS')" sec:authentication="principal.name">租户管理员名字</span>
						<span sec:authorize="hasRole('ROLE_ECT')" sec:authentication="principal.name">最终用户名字</span>
					</li>
				
					<li class="dropdown" sec:authorize="hasRole('ROLE_ADMIN')">
						<a href="javascript:lessee();">租户管理</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_ADMIN')">
						<a href="javascript:lesseeadmin();">租户管理员管理</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_ADMIN')">
						<a href="javascript:log();">用户操作日志</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_ADMIN')">
						<a href="javascript:tongji();">统计功能</a>
					</li>
					
					
<!-- ------------------------------------------------------------------------------------------------- -->
					
					<li class="dropdown" sec:authorize="hasRole('ROLE_TMS')">
						<a href="javascript:zclessee();">注册租户</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_TMS')">
						<a href="javascript:userM();">用户管理</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_TMS')">
						<a href="javascript:fpgl();">电子发票管理</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_TMS')">
						<a href="javascript:impower();">软件授权信息</a>
					</li>
					
<!-- ------------------------------------------------------------------------------------------------- -->
				
					<li class="dropdown" sec:authorize="hasRole('ROLE_ECT')">
						<a href="javascript:eimrefer();">电子发票查询</a>
					</li>
					<li class="dropdown" sec:authorize="hasRole('ROLE_ECT')">
						<a href="javascript:eimadd();">新增电子发票</a>
					</li>

<!-- ------------------------------------------------------------------------------------------------- -->
					<li class="dropdown">
						<a href="" class="dropdown-toggle" data-toggle="dropdown"> 
							<span class="glyphicon glyphicon-cog"></span>
							<span>设置</span>
							<span class="caret"></span>
						</a>
						<ul class="dropdown-menu dropdown-menu-left">
							<li>
								<a href="javascript:enduserpwd();" class="glyphicon glyphicon-lock">&nbsp;修改密码</a>
							</li>
							<!-- <li>
								<a href="javascript:#" class="glyphicon glyphicon-question-sign" sec:authorize="hasRole('ROLE_TMS')">&nbsp;忘记密码</a>
							</li> -->
						</ul>
					</li>
					
					<li>
						<a href="logout1">
							<span class="glyphicon glyphicon-off"></span>
							<span>安全退出</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</nav>
	<div id="aaa" class="container">
			<div id="bbb">
				<p sec:authorize="hasRole('ROLE_ADMIN')">
					<span style="color: red;">功能介绍</span>：本系统分三层用户：系统管理端，租户管理端，最终用户端；该页面为，系统管理端页面，下面为功能介绍：<br /><br />
					<span style="color: red;">租户管理员账号：<span style="color:blue;">1242662020@qq.com</span>&emsp;密码：<span style="color:blue;">111111</span>；</span>
					<span style="color: red;">最终用户账号：<span style="color:blue;">user</span>&emsp;密码：<span style="color:blue;">user</span>；</span><br/>
					<br /> <span style="color: red;">租户管理</span>：①可以查询租户的基本信息<br />
					&emsp;&emsp;&emsp;&emsp;&emsp;②可以新增和修改租户的软件授权记录；<br />
					<br /> <span style="color: red;">租户管理员管理</span>：可以查看租户管理员的基本信息和一键重置租户管理员的密码（重置后密码为"111111"）；<br />
					<br /> <span style="color: red;">用户操作日志</span>：记录系统里用户的登入、登出、注册、增加用户、新增发票等操作日志；<br />
					<br /> <span style="color: red;">统计功能</span>：可以统计每个租户管理的电子发票的数量；<br />
					<br /> <span style="color: red;">修改密码</span>：修改该账户的密码;<br />
					<br /> <span style="font-size: 1.3em">提示</span>：表格左下方<span class="glyphicon glyphicon-plus"></span>为新增用户；<span class="glyphicon glyphicon-pencil"></span>为修改信息；<span class=" glyphicon glyphicon-trash "></span>为删除用户；
				</p>
				
				<p sec:authorize="hasRole('ROLE_TMS')">
					<span style="color: red;">功能介绍</span>：该页面为，租户管理员页面，下面为功能介绍：<br />
					<br /> <span style="color: red;">注册租户</span>：①可以注册新的租户，新的租户注册后，默认在其软件授权信息里新增一年免费使用的授权；<br />
					<br /> <span style="color: red;">用户管理</span>：①对租户下的用户进行管理，可增、删、改、查<br />
					&emsp;&emsp;&emsp;&emsp;&emsp;②新增的用户默认密码为“111111”；<br />
					<br /> <span style="color: red;">电子发票管理</span>：可以查询本租户内的电子发票及删除某条发票信息；<br />
					<br /> <span style="color: red;">软件授权信息管理</span>：可以查看本租户的历史软件授权信息和授权截止日期；<br />
					<br /> <span style="color: red;">修改密码</span>：修改该账户的密码;<br />
					<br /> <span style="font-size: 1.3em">提示</span>：表格左下方<span class="glyphicon glyphicon-plus"></span>为新增用户；<span class="glyphicon glyphicon-pencil"></span>为修改信息；<span class=" glyphicon glyphicon-trash "></span>为删除用户；
				</p>
				
				<p sec:authorize="hasRole('ROLE_ECT')">
					<span style="color: red;">功能介绍</span>：该页面为，最终用户端页面，下面为功能介绍：<br />
					<br /> <span style="color: red;">电子发票查询</span>：可以查询本租户的所有的电子发票信息；<br />
					<br /> <span style="color: red;">新增电子发票信息</span>：新增电子一条或多条电子发票；<br />
					<br /> <span style="color: red;">软件授权信息管理</span>：可以查看本租户的历史软件授权信息和授权截止日期；<br />
					<br /> <span style="color: red;">修改密码</span>：修改该账户的密码;<br />
					<br /> <span style="font-size: 1.3em">提示</span>：表格左下方<span class="glyphicon glyphicon-plus"></span>为新增发票；
				</p>
			</div>
	</div>
</body>
</html>